﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace MyWordAddIn
{
    class LogUtil
    {

        static Log log;

        public
         static
         void
         ShowInfo(
        string
         Info)


        {
            if (null == log)
            {
                log = new Log();
                log.Show();
            }
            else if (log != null && log.IsDisposed)
            {
                log = new Log();
                log.Show();
            }


            log.textBox1.AppendText(Info);


            log.textBox1.AppendText(Environment.NewLine);


            log.textBox1.ScrollToCaret();

            // 置顶
            log.Activate();


        }
    }
}
